package cn.xing.util;

public class RedisKeyUtil {
	private static String SPLIT = ":";
	private static String BIZ_LIKE = "LIKE";
	private static String BIZ_DISLIKE = "DISLIKE";
	private static String BIZ_EVENT = "EVENT";//事件的key

	public static String getEventQueueKey() {
		return BIZ_EVENT;
	}

	public static String getLikeKey(int entityId, int entityType) {
		return BIZ_LIKE + SPLIT + String.valueOf(entityType) + SPLIT + String.valueOf(entityId);
	}

	public static String getDisLikeKey(int entityId, int entityType) {
		return BIZ_DISLIKE + SPLIT + String.valueOf(entityType) + SPLIT + String.valueOf(entityId);
	}
}
